
$("#onlineOpen").mouseover(function(){
    var onService_panel=$("#onService_panel");
    onService_panel.animate({right:0},function(){});
    $(this).hide();
});

$("#onlineClose").click(function(){
    var onService_panel=$("#onService_panel");
    onService_panel.animate({right:-166});
    onService_panel.find(".online_tab").fadeOut(100);
    $("#onlineOpen").show();
});
/**/

$(".online_icon").click(function(){
    $(".online_tab").fadeOut(100);
    var onclickId=$(this).attr("id");
    var findparent_tab;
    switch (onclickId){
        case "online_tel_icon":
            findparent_tab=$("#onlineTelTab");
            break;
        case "online_qq_icon":
            findparent_tab=$("#onlineQQTab");
            break;
        case "online_message_icon":
            findparent_tab=$("#onlineMessageTab");
            break;
    }
    findparent_tab.fadeIn(100);
});